<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>活动列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="Pragma"    content="no-cache"/>
    <meta name="referrer" content="never">
    <meta http-equiv="Cache-Control"    content="no-cache"/>
     
    <meta http-equiv="Expires"    content="0"/>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/layui/style/admin.css" media="all"/>
</head>
<body class="childrenBody">
<blockquote class="layui-elem-quote news_search">
    <div class="layui-form-item queryTable">
        <div class="layui-input-inline"><input name="name" type="text" value="" placeholder="输入门店名" autocomplete="off"
                                               class="layui-input search_input"></div>
        <div class="layui-input-inline" style="width: unset;"><a class="layui-btn search_btn ">查询</a></div>
        <div class="layui-input-inline"><a class="layui-btn activityAdd" style="background-color:#5FB878">添加活动</a></div>
    </div>
</blockquote>
<table class="layui-hide" id="activity_info_table" lay-filter="activity_info_table"></table>
<div id="add_activity_info_win" style="display: none;">
    <form id="add_activity_info_form" class="layui-form" action="" lay-filter="add_activity_info_form">
        <input type="hidden" name="id" id="id"/>
        <div class="layui-form-item"><label class="layui-form-label">活动门店:<span style="color: red">*</span></label>
            <div class="layui-input-block"><select id="storeId" name="storeId" lay-filter="storeId" required
                                                   lay-verify="required" autocomplete="off"> </select></div>
        </div>
        <div class="layui-form-item"><label class="layui-form-label">活动标题:<span style="color: red">*</span></label>
            <div class="layui-input-block"><input type="text" name="title" id="title" required lay-verify="required"
                                                  value="" placeholder="请输入活动标题" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item"><label class="layui-form-label">开始时间:<span style="color: red">*</span></label>
            <div class="layui-input-block"><input type="text" name="begin_time" id="begin_time" required
                                                  lay-verify="required" autocomplete="off" class="layui-input"></div>
        </div>
        <div class="layui-form-item"><label class="layui-form-label">结束时间:<span style="color: red">*</span></label>
            <div class="layui-input-block"><input type="text" name="end_time" id="end_time" required
                                                  lay-verify="required" autocomplete="off" class="layui-input"></div>
        </div>
        <div class="layui-form-item"><label class="layui-form-label">活动简介:<span style="color: red">*</span></label>
            <div class="layui-input-block"><input type="text" name="conver_text" id="conver_text"
                                                  placeholder="建议为活动描述" class="layui-input" required
                                                  lay-verify="required" autocomplete="off"></div>
        </div>
        <div class="layui-form-item"><label class="layui-form-label">活动图片:<span style="color: red">*</span></label>
            <div class="layui-input-block face_file">
                <div class="layui-upload-list">
                    <input type="hidden" keyName="icon_url" name="icon_url" id="icon_url" class="icon_url_input" required lay-verify="required" autocomplete="off">
                    <img class="layui-upload-img icon_url_img" style="max-width: 300px; max-height: 200px;">
                    <p class="fade_file_tip"></p></div>
                <button type="button" class="layui-btn layui-form-label icon_file_btn">上传图片</button>
            </div>
        </div>
        <div class="layui-form-item"><label class="layui-form-label">图文描述:</label>
            <div class="layui-input-block">
                <input type="text" name="text" id="text" placeholder="建议为店铺招牌描述" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item"><label class="layui-form-label">图文图片:</label>
            <div class="layui-input-block face_file">
                <div class="layui-upload-list">
                    <input type="hidden" keyName="image_url" name="image_url" id="image_url" class="image_url_input">
                    <img class="layui-upload-img image_url_img" style="max-width: 300px; max-height: 200px;">
                    <p class="image_url_tip"></p></div>
                <button type="button" class="layui-btn layui-form-label image_file_btn">上传图片</button>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit lay-filter="preserve">保存信息</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
    <!--    {{#  if(d.state == 1){ }}-->
    <!--    <a href="#" class="layui-btn layui-btn-xs" lay-event="close_activity">关闭活动</a>-->
    <!--    {{#  } }}-->
</div>
<script type="text/javascript" src="/js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="/js/common.js"></script>
<script type="text/javascript" src="/layui/layui.js"></script>
<script type="text/javascript" src="/js/MathUtils.js"></script>
<script src="/js/cpn/cpn_activity_info.js"></script>
<script type="text/html" id="OptData">

    <a href="#" class="layui-btn layui-btn-xs" lay-event="modify_activity">编辑</a>
    <a href="#" class="layui-btn layui-btn-xs" lay-event="edit_card">优惠券信息</a>
    {{#  if(d.state == 0){ }}
    <a href="#" class="layui-btn layui-btn-xs" lay-event="open_activity">开启活动</a>
    {{#  } }}
</script>
</body>
</html>